<?php
    $sender=$_GET["sender"];
    $receiver=$_GET['receiver'];
    $message=$_GET['message'];

    $con = mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("tubetogether", $con);
    $sql="INSERT INTO messages(Sender,Receiver,Message) VALUES ('$sender','$receiver','$message')";
    $result = mysql_query($sql);
    mysql_close();
    echo "OK";
?>
